package org.gdpu.service.impl;

import org.gdpu.base.DaoSupport;
import org.gdpu.model.*;
import org.gdpu.service.TestAnswerService;
import org.gdpu.service.TestPaperService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-6-5
 * Time: 下午9:05
 * To change this template use File | Settings | File Templates.
 */
@Service
@Transactional
public class TestAnswerServiceImpl extends DaoSupport<TestAnswer> implements TestAnswerService {

    @Override
    public TestAnswer findTestAnswer(String answer) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("answer", answer);
        return (TestAnswer) this.findSpecialObject(TestAnswer.class, params);
    }

}
